<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/15
 * Time: 12:58
 */

namespace app\admin\model;

use app\api\model\GoodsRule;
use app\api\model\OrderDetail;
use think\model\relation\BelongsTo;
use think\model\relation\HasMany;

class Order extends BaseModel
{

    public function orderDetail(): HasMany
    {
        return $this->hasMany(OrderDetail::class);
    }

    public function goodsRule(): BelongsTo
    {
        return $this->belongsTo(GoodsRule::class);
    }
}